package terapeuta;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import java.awt.TextArea;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

public class EI_Saio_oharrak_erregistratu_1_1 extends JFrame {

	private JPanel contentPane;
	private JTextField bezeroNAN;
	private JLabel lblTerapeuta;
	private JTextField terapeutaNAN;
	private JLabel lblTerapia;
	private JComboBox comboBox;
	private JLabel lblOharrak;
	private JLabel lblAdibv;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EI_Saio_oharrak_erregistratu_1_1 frame = new EI_Saio_oharrak_erregistratu_1_1();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public EI_Saio_oharrak_erregistratu_1_1() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 384);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblBezeroarenNana = new JLabel("Bezeroaren NAN-a");
		lblBezeroarenNana.setBounds(10, 26, 108, 14);
		contentPane.add(lblBezeroarenNana);
		
		bezeroNAN = new JTextField();
		bezeroNAN.setBounds(128, 23, 155, 20);
		contentPane.add(bezeroNAN);
		bezeroNAN.setColumns(10);
		
		lblTerapeuta = new JLabel("Terapeutaren NAN-a");
		lblTerapeuta.setBounds(10, 51, 119, 14);
		contentPane.add(lblTerapeuta);
		
		terapeutaNAN = new JTextField();
		terapeutaNAN.setBounds(128, 48, 155, 20);
		contentPane.add(terapeutaNAN);
		terapeutaNAN.setColumns(10);
		
		lblTerapia = new JLabel("Terapia");
		lblTerapia.setBounds(10, 79, 52, 14);
		contentPane.add(lblTerapia);
		
		comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Akupuntura", "Yoga saioak", "Moxibustion", "Pilates saioak"}));
		comboBox.setBounds(60, 76, 108, 20);
		contentPane.add(comboBox);
		
		lblOharrak = new JLabel("Oharrak");
		lblOharrak.setBounds(10, 132, 52, 14);
		contentPane.add(lblOharrak);
		
		TextArea textArea = new TextArea();
		textArea.setText("Idatzi");
		textArea.setBounds(72, 125, 295, 103);
		contentPane.add(textArea);
		
		JButton btnGorde = new JButton("Gorde");
		btnGorde.setBounds(115, 278, 89, 23);
		contentPane.add(btnGorde);
		
		JButton btnAtzera = new JButton("Atzera");
		btnAtzera.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EI_Terapeuten_pantaila_1 bat=new EI_Terapeuten_pantaila_1();
				bat.setVisible(true);
				EI_Saio_oharrak_erregistratu_1_1.this.setVisible(false);}
			});
		
		btnAtzera.setBounds(211, 278, 89, 23);
		contentPane.add(btnAtzera);
		
		lblAdibv = new JLabel("Adib: 11111111v");
		lblAdibv.setBounds(293, 26, 94, 14);
		contentPane.add(lblAdibv);
	}
}
